<template>
  <div>
    <el-dialog
      title="同步内容"
      :visible.sync="reportshow"
      custom-class="ReportDialog"
    >
      <el-table
        :data="syndatareport"
        :header-cell-style="{ background: '#67C23A', color: '#ffffff' }"
        style="margin-top: -20px"
        border
      >
        <el-table-column
          property="id"
          label="工号"
          header-align="center"
          align="center"
        >
        </el-table-column
        >>
        <el-table-column
          property="name"
          label="姓名"
          width="100"
          header-align="center"
          align="center"
        ></el-table-column>
        <el-table-column
          property="action"
          label="操作"
          width="70"
          header-align="center"
          align="center"
        >
          <template slot-scope="scope">
            <el-tag
              :type="
                scope.row.action === '新增'
                  ? 'success'
                  : scope.row.action === '删除'
                  ? 'danger'
                  : ''
              "
              disable-transitions
              >{{ scope.row.action }}</el-tag
            >
          </template>
        </el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ["syndatareport"],
  data() {
    return {
      reportshow: false,
    };
  },
};
</script>

<style>
.ReportDialog {
  width: 25%;
}
</style>